import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { PointComponent } from './pages/point/point.component';
import { HomeComponent } from './pages/home/home.component';

const routes: Routes = [
    { path: '', component: HomeComponent },
    { path: "point/:id", component: PointComponent },
    { path: "mytest", component: PointComponent }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
